package com.dhn.service.Impl;

import com.dhn.entity.Room;
import com.dhn.mapper.RoomMapper;
import com.dhn.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomServiceImpl implements RoomService {
    @Autowired
    private RoomMapper roomMapper;
    @Override
    public List<Room> getRooms(Room room) {
        return roomMapper.getRooms(room);
    }

    @Override
    public int getTotal(Room room) {
        return roomMapper.getTotal(room);
    }
}
